#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

namespace Ui {
    class MainWindow;
}

class FFmpegWrapper;

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void browseSourceVideo();
    void browseDestinationVideo();
    void convertVideo();
    void closeEvent ( QCloseEvent * event );
    void on_buttonGroup_buttonClicked();
    void on_ffmpegwrapper_finish(int code);

private:
    void dragEnterEvent(QDragEnterEvent *event);
    void dropEvent(QDropEvent *event);
    void addFile(const QString& file);
    bool fitTo320x240();
    bool cutVideo();

private:
    Ui::MainWindow *ui;
    FFmpegWrapper* ffmpegWrapper;
};

#endif // MAINWINDOW_H
